package cn.yhbk.web.modules.manager.Pojo.DTO.Message;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class MessageDto {

    @ApiModelProperty("消息ID")
    @TableId("id")
    private Long id;

    @ApiModelProperty("接收消息学生ID")
    @TableField("student_id")
    private Long studentId;

    @ApiModelProperty("接收消息学生学号")
    private Long studentJobNumber;

    @ApiModelProperty("接收消息学生姓名")
    private String studentName;

    @ApiModelProperty("内容")
    @TableField("content")
    private String content;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("状态（1：学生未查看，2：学生已查看）")
    @TableField("status")
    private Byte status;

}
